import React from 'react'

/**
 * 搜索数据展示列表
 *
 * @author leonzhangxf 20190117
 */
class SearchAreaDataBodySectionDataList extends React.Component {
  render() {
    let data = this.props.dataList.map((datum) => {
      return (
        <div key={datum.name} className="SearchArea-Data-Body-Section-Data-Unit">
          <span className="SearchArea-Data-Body-Section-Data-Unit-Name">{datum.name}</span>
          <span className="SearchArea-Data-Body-Section-Data-Unit-Value">{datum.price}</span>
        </div>
      );
    });

    return (
      <div className="SearchArea-Data-Body-Section-Data">
        {data}
      </div>
    );
  }
}

export default SearchAreaDataBodySectionDataList;